package com.fy.market.trigger.feign;

import com.fy.market.types.common.reslut.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 奖品Feign客户端
 * @author fwq
 * @date 2025-10-11
 */
@FeignClient(name = "fy-market-ddd", path = "/award")
public interface AwardFeignClient {

    /**
     * 获取全部奖品信息
     * @param strategyId 策略ID
     * @return 全部奖品信息
     */
    @PostMapping("/getAllAwards")
    R getAllAwards(@RequestParam("strategyId") Integer strategyId);

    /**
     * 获取奖品详情
     * @param id 奖品ID
     * @return 奖品详情
     */
    @GetMapping("/getAwardDetail")
    R getAwardDetail(@RequestParam("id") Integer id);
}
